home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8607 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: [Q] functions returning structures
  5. Date: 03 Mar 1996 05:59:59 GMT
  6. Organization: Los Alamos National Laboratory
  7. Message-ID: <TANMOY.96Mar2225959@qcd.lanl.gov>
  8. References: <4hasjj$opf@decaxp.harvard.edu>
  9. NNTP-Posting-Host: qcd.lanl.gov
  10. Mime-Version: 1.0
  11. Content-Type: text
  12. In-reply-to: martino@course2.harvard.edu's message of 3 Mar 1996 01:28:19 GMT
  13.  
  14. In article <4hasjj$opf@decaxp.harvard.edu>
  15. martino@course2.harvard.edu (Carlo Martino) writes:
  16. <snip>
  17. CM: What was going wrong?  Is there a way to return structures without putting
  18.  
  19. Did the name of the newsgroup change to comp.lang.c.clairvoyant when I
  20. wasn't looking?
  21.  
  22. CM: them on the heap?  When am I at risk for structures to become corrupt and
  23. CM: when am I OK?
  24.  
  25. Returning struct is completely okay (it may not necessarily be the
  26. most efficient way, but that is not an issue here). But code can be
  27. incorrect in many ways: post a small example of your code, and we can
  28. see. 
  29.  
  30. Cheers
  31. Tanmoy
  32. --
  33. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  34. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  35. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  36. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  37. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  38. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  39.